package com.ys.mapper;

import com.ys.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface OrderMapper {
    List<Order> OrderList(Order order);
    boolean addsa(Order order);
    boolean deltes(Integer id);
    boolean zongjia(@Param("id") Integer id);
    List<Order> findBuyAll(@Param("name1") String name1,@Param("name2") String name2,@Param("name3") String name3,@Param("name4") String name4);      //查找类型是购买的所有订单

    List<Order> findAll();

    List<Order> findTypes(@Param("types") String types);

    List<Order> findDate(LocalDate goumaishijian);
}
